package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.SwglAnnouncement;
import com.ruoyi.system.api.domain.SysUser;
import com.ruoyi.system.api.factory.RemoteAnnounceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 公告服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "ISwglAnnouncementService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteAnnounceFallbackFactory.class)
public interface RemoteAnnounceService
{

    @PostMapping("/announcement")
    public AjaxResult add(@RequestBody SwglAnnouncement swglAnnouncement);

}
